package com.zx.idc.backend.gui.scheduler.base.entire;

import com.zx.idc.backend.gui.api.management.basicdata.report.IdcBasicDataReportService;
import com.zx.idc.backend.gui.common.anno.GlobalJob;
import com.zx.idc.common.spring.SpringBeanUtil;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *  基础数据自动上报job
 *  目前只自动上报删除的基础数据
 * @author rxliuli
 */
@GlobalJob
public class BaseDataJobEntire implements Job {

    private static final Logger LOG = LoggerFactory.getLogger(BaseDataJobEntire.class);

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        LOG.info("基础数据自动上报job开始执行。。。");
        final IdcBasicDataReportService service = SpringBeanUtil.getBean(IdcBasicDataReportService.class);
        service.activeReporting();
        LOG.info("基础数据自动上报job执行结束");
    }
}
